package com.miyake.loveviewweb.client.chart;

import com.google.gwt.event.dom.client.ClickHandler;
import com.miyake.loveviewweb.client.chart.StaticChart.StaticChartHandler;

public class LvChartFactory {
    private static LvChartFactory instance;

    private LvChartFactory() {
        
    }
    
    public static LvChartFactory getInstance() {
        if (instance == null) {
            instance = new LvChartFactory();
        }
        return instance;
    }
    
    public IChart createSimpleDynamicChart() {
        return new SimpleDynamicChart();
    }
    
    public IChart createFlashChart() {
        return new FlashChart();
    }
    
    public IChart createStaticChart(StaticChartHandler handler) {
        return new StaticChart(handler);
    }
}
